package com.cty.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {

    @RequestMapping("springmvc/hello")//访问的地址
    @ResponseBody //代表直接返回到前端
    public String hello() {
        System.out.println("hello springmvc");
        return "hello springMvc";
    }
}
